﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Forum.Entity.Group;

namespace Forum.Entity.Member
{
    public partial class ForumMemberInfo
    {
        private MemberBaseInfo _memberInfo;
        public Func<int, MemberBaseInfo> GetMemberBaseInfo;
        public MemberBaseInfo MemberBaseInfo
        {
            get
            {
                if (_memberInfo == null)
                {
                    _memberInfo = GetMemberBaseInfo(this.ID);
                }
                return _memberInfo;
            }
            set
            {
                _memberInfo = value;
            }
        }

        private ForumGroupInfo _groupInfo;
        public Func<int, ForumGroupInfo> GetGroupInfo;
        public ForumGroupInfo ForumGroupInfo
        {
            get
            {
                if (_groupInfo == null)
                {
                    _groupInfo = GetGroupInfo(this.ID);
                }
                return _groupInfo;
            }
        }

      
    }
}
